package com.leyou.item.service;

import com.leyou.item.mapper.CollectMapper;
import com.leyou.item.pojo.Attention;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;



@Service
public class CollectService {

    @Autowired
    private CollectMapper collectMapper;

    // 向collections表添加数据
    public void addCollect(Attention collect) {
        System.out.println(collect);
        this.collectMapper.insert(collect);
    }
}
